/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Clases;

import java.util.Hashtable;
import java.util.LinkedList;

/**
 *
 * @author CESAR
 */
public class ListaTareas {
    
    private LinkedList <Tarea> listaTarea;
    private Hashtable<Integer,Tarea> hashTarea;

    public ListaTareas() {
        listaTarea= new LinkedList<Tarea>();
        hashTarea=new Hashtable<Integer, Tarea>();
    }
    
    public void agregar(Tarea res)
    {
        listaTarea.add(res);
        hashTarea.put(res.getId(), res);
    }
    
    public Tarea buscar(int e)
    {
        return hashTarea.get(e);        
    }
    public LinkedList <Tarea> getListaTareas()
    {
        return listaTarea;           
    }
    
    
}
